﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    public class Enums
    {

        /// <summary>
        ///  气象报文状态
        /// </summary>
        /// 
        [Flags]
        public enum MeteoMsgStatus
        {
            //未生成预警信息
            UnCreateAlert = 0,

            //开始生成预警信息
            StartCreateAlert = 1,

            //已生成预警信息
            FinishCreateAlert = 2,

            //生成短信
            FinishCreateSMS = 4,

            //生成预警信息失败
            CreateAlertError = 8,

            //生成短信失败
            CreateSMSError = 16
        }

        /// <summary>
        ///  机场相关类型
        /// </summary>
        public enum AirPortRelationType
        {
            起飞机场,
            目的机场,
            起飞备降场,
            降落备降场,
            航路备降场
        }

        /// <summary>
        /// 预警行为
        /// </summary>
        [Flags]
        public enum AlertActionFlag
        {
            BubbleAlert = 1,
            PromptAlert = 2,
            AutoSendAcarsAlert = 4,
            ManualSendAcrarsAlert = 8,
            AutoSendSMSAlert = 16,
            ManualSendSMSAlert = 32,
            ConfirmAcars = 64,
            ConfirmSMS = 128
        }

        /// <summary>
        /// 预警等级
        /// </summary>
        public enum AlertLevel
        {
            Red = 1,
            Yellow = 2,
            Blue = 3,
            None = 0
        }

        /// <summary>
        /// 授权凭证类型
        /// </summary>
        public enum CredentialType
        {
            Self = 1,
            Delegate = 2
        }

        /// <summary>
        /// 消息状态
        /// </summary>
        public enum MessageStatus
        {
            FinishCreate,
            FinishSend,
            SendError
        }
        /// <summary>
        /// 更新数据库返回标志
        /// </summary>
        public enum DataAccessReturnValue
        {
            更新成功,
            更新失败,
            无法更新 //数据重复或数据不合法导致的不能更新
        }

        [Flags]
        public enum AlertType
        {
            //短信类型
            SMSType=1,

            //非短信类型
            CommonType=2

        }

    }
}
